# 
# 001.hello
# 	注意：CMakeLists.txt 文件中，命令名字是不区分大小写的，而参数和变量是大小写相关的。
#

cmake_minimum_required(VERSION 3.0)

# 使用 Unicode 字符集
add_definitions(-DUNICODE -D_UNICODE)

# project(<PROJECT-NAME> [LANGUAGES] [<language-name>...])
# Set a name, version, and enable languages for the entire project.
# Sets the name of the project and stores the name in the PROJECT_NAME variable. Additionally this sets variables
# 	PROJECT_SOURCE_DIR, <PROJECT-NAME>_SOURCE_DIR
# 	PROJECT_BINARY_DIR, <PROJECT-NAME>_BINARY_DIR
project(HELLO)
set(CMAKE_VERBOSE_MAKEFILE on)

# 显示消息
message(STATUS "${PROJECT_BINARY_DIR}")
message(STATUS "${PROJECT_SOURCE_DIR}")
message(STATUS "${PROJECT_NAME}")

# set
# 	Set a normal, cache, or environment variable to a given value.
#	set(<variable> <value>... [PARENT_SCOPE])
#	set(<variable> <value>... CACHE <type> <docstring> [FORCE])
#	set(ENV{<variable>} <value>...)
set(SRC_LIST main.cpp)

# add_exectuable 告诉工程生成一个可执行文件。
# add_library 则告诉生成一个库文件。
add_executable(hello ${SRC_LIST})

